<?php

//===============================
// Center

switch($option) {
    case "category": {
            switch($action) {
                case "add": {
                        $class_document_category_add = 'class="active"';
                        include "category_add.php";
                        break;
                }case "edit": {
                        include "category_edit.php";
                        break;
                }case "del": {
                        deleteNewsCat();
                        $class_document_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "multiAction": {
                        multiActionCategoryNews();
                        $class_document_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "order": {
                        $arrCat = orderNewsCategory();
                        $class_document_categroy_order = 'class="active"';
                        include "order.php";
                        break;
                }case "up": {
                        upOrderNewsCategory();
                        $class_document_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "down": {
                        downOrderNewsCategory();
                        $class_document_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }default: {
                        $class_document_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                    }
            }
            break;
    }case "add"  : {
            addNewNews();
            $class_document_add = 'class="active"';
            include "document_add.php";
            break;
    }case "edit": {
            include "document_edit.php";
            break;
    }case "detail": {
            include 'document_detail.php';
            break;
    }case "gen-tags": {
            include ADMIN_MODULE_DIR.'/document/functions/gen-tag/gen-tag-functions.php';
            include "document_gen-tags.php";
            break;
    }case "del": {
            deleteNews();
            $class_document_list = 'class="active"';
            include "document_list.php";
            break;
    }case "multiAction": {
            multiActionNews();
            $class_document_list = 'class="active"';
            include "document_list.php";
            break;
    }default        : {
            $class_document_list = 'class="active"';
            include "document_list.php";
            break;
        }
}
?>